for num in range(10,20): for i in range(2,num): if num%i==0: j=num/i print("%d equals to %d * %d " % (num,i,j)) break else: print(num, "is prime number")